home *** CD-ROM | disk | FTP | other *** search
- from JascApp import *
-
- def ScriptProperties():
- return {
- 'Author': '',
- 'Copyright': '',
- 'Description': '',
- 'Host': 'Paint Shop Pro',
- 'Host Version': '8.00'
- }
-
- def Do(Environment):
-
- # we need at least one image for this to work
- if len(App.Documents) < 1:
- App.Do(Environment, 'MsgBox', {
- 'Buttons': App.Constants.MsgButtons.OK,
- 'Icon': App.Constants.MsgIcons.Stop,
- 'Text': 'Command could not complete because there is no active document.'
- })
- return
-
- App.Do( Environment, 'LayerProperties', {
- 'General': {
- 'Opacity': None,
- 'Name': None,
- 'IsVisible': None,
- 'IsTransparencyLocked': None,
- 'LinkSet': None,
- 'UseHighlight': None,
- 'PaletteHighlightColor': None,
- 'GroupLink': None,
- 'BlendMode': App.Constants.BlendMode.Overlay
- },
- 'BlendRanges': None,
- 'Path': (0,0,[],App.Constants.Boolean.false),
- 'BrightnessContrast': None,
- 'ChannelMixer': None,
- 'ColorBalance': None,
- 'CurveParams': None,
- 'HSL': None,
- 'Threshold': None,
- 'Levels': None,
- 'Posterize': None,
- 'Overlay': None,
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Silent,
- 'AutoActionMode': App.Constants.AutoActionMode.Default
- }
- })
-
-